package com.eleadmin.gzh.entity.reply;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.util.Map;

/**
 * @author Damon
 * @create 2020-08-26 16:27
 */
@XStreamAlias("xml")
public class ImageMessage extends BaseMessage {

    public ImageMessage(Map<String, String> requestMap, String mediaId) {
        super(requestMap);
        //设置文本消息的msgType为text
        this.setMsgType("image");
        this.mediaId = mediaId;
    }

    @XStreamAlias("MediaId")
    private String mediaId;

    public String getMediaId() {
        return mediaId;
    }

    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    @Override
    public String toString() {
        return "TextMessage{" +
                "mediaId='" + mediaId + '\'' +
                ", toUserName='" + getToUserName() + '\'' +
                ", fromUserName='" + getFromUserName() + '\'' +
                ", createTime='" + getCreateTime() + '\'' +
                ", msgType='" + getMsgType() + '\'' +
                "} ";
    }
}
